package com.gcxy.controller;


import com.gcxy.core.R;
import com.gcxy.dto.export.DownloadFileDTO;
import com.gcxy.service.ProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 项目表 前端控制器
 * </p>
 *
 * @author Huang先森
 * @since 2024-07-22
 */
@RestController
@RequestMapping("/project")
@Api(value = "ProjectController", tags = "项目管理")
public class ProjectController {

    @Autowired
    private ProjectService projectService;

    /**
     * 生成项目老师学生清单
     */
    @PostMapping(value = "/createProjectFile")
    @ApiOperation(value = "生成项目老师学生清单")
    public R<?> createProjectFile(@RequestBody @Validated DownloadFileDTO dto) {
        return projectService.createProjectStudentListFile(dto);
    }


}

